package com.example.hotelmanagement.mapper;

import com.example.hotelmanagement.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll();
    User findById(Integer userId);
    User findByUsername(String username);
    int insert(User user);
    int update(User user);
    int delete(Integer userId);
}